import Mock, { Random } from 'mockjs'

const userInfo = {
    name: Random.cname(),
    userId: Random.natural(0, 100),
    idCard: Random.id(),
    email: Random.email(),
    token: Random.string(10),
    permission: []
};

export const userData = Mock.mock('/login', 'post', {
    data: {
        ...userInfo
    }
})

console.log(userData)